﻿using System;


namespace RStudio.UIFramwork
{
    /// <summary>
    /// 特性 UI 信息
    /// </summary> 
    [AttributeUsage(AttributeTargets.Class)]
    public class UIDetailAttribute: Attribute
    {
        /// <summary>
        /// 描述信息
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 资产关联路径
        /// </summary>
        public string AssetLink { get; set; }



        public UIDetailAttribute(string description, string assetLink)
        {
            Description = description;
            AssetLink = assetLink;
        }

        public bool IsAssetLinkValid()
        {
            return !string.IsNullOrEmpty(this.AssetLink);
        }
    }
}
